﻿namespace ParserGenerator.Extensions
{
    public static class ArrayExtensions
    {
        private static class Empty<T>
        {
            public static T[] Instance { get; } = new T[0];
        }

        public static T[] GetEmpty<T>()
        {
            return Empty<T>.Instance;
        }
    }
}
